package com.cloud.weixin.project.model.dto;

import com.alibaba.fastjson.JSONObject;
import com.cloud.common.core.model.supers.Convert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 自定义菜单模型
 */
@Data
public class MenuButton extends Convert {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单的响应动作类型，view表示网页类型，click表示点击类型，miniprogram表示小程序类型")
    private String type;

    @ApiModelProperty(value = "菜单名")
    private String name;

    @ApiModelProperty(value = "key")
    private String key;

    @ApiModelProperty(value = "view、miniprogram保存链接")
    private String url;

    @ApiModelProperty(value = "永久素材id")
    private String media_id;

    @ApiModelProperty(value = "小程序的appid")
    private String appid;

    @ApiModelProperty(value = "小程序的页面路径")
    private String pagepath;

    @ApiModelProperty(value = "子按钮")
    private List<MenuButton> sub_button = new ArrayList();

    @ApiModelProperty(value = "content内容")
    private JSONObject content;

    @ApiModelProperty(value = "创建时间")
    private String repContent;

    @ApiModelProperty(value = "消息类型")
    private String repType;

    @ApiModelProperty(value = "消息名")
    private String repName;

    @ApiModelProperty(value = "视频和音乐的描述")
    private String repDesc;

    @ApiModelProperty(value = "视频和音乐的描述")
    private String repUrl;

    @ApiModelProperty(value = "高质量链接")
    private String repHqUrl;

    @ApiModelProperty(value = "缩略图的媒体id")
    private String repThumbMediaId;

    @ApiModelProperty(value = "缩略图url")
    private String repThumbUrl;
}
